﻿using UnityEngine;

namespace Framework.UI
{
    public class UIBase : MonoBehaviour
    {
        private UIType m_UIType;
        public UIType UIType
        {
            get
            {
                return m_UIType;
            }
        }
        private string m_UIName;
        public string UIName
        {
            get
            {
                return m_UIName;
            }
        }

        public void Init(UIType uiType, string uiName)
        {
            m_UIType = uiType;
            m_UIName = uiName;
        }
        public virtual void OnActivate() { }
        public virtual void OnShow(object userData) { }
        public virtual void OnUpdate(float frameTime, float realTime) { }
        public virtual void OnRelease() { }
    }
}
